import ddddocr


def run(save_name):
    ocr = ddddocr.DdddOcr()

    with open('./database/images/' + save_name, 'rb') as f:
        img = f.read()

    res = ocr.classification(img)

    # print(res)
    #
    # print(type(res))

    return res


if __name__ == '__main__':
    t = run('084742937561s.jpg')
    print(t)